#include <iostream>
using namespace std;

int countUppercase(char * s, int high)
{
  if (high == 0)
    return isupper(s[0]) ? 1 : 0;
  else
    return countUppercase(s, high - 1) + (isupper(s[high]) ? 1 : 0);
}

int countUppercase(char * s) {
  return countUppercase(s, strlen(s) - 1);
}

int main()
{
  int list[] =
  {
    1, 2, 3, 4, 5
  };
  cout << countUppercase("Welcome to Java") << endl;

  return 0;
}
